/**
 * @author zhoutao
 *  2010-11-6
 */
package com.jlt.tag;

import javax.servlet.jsp.JspException;

import com.jlt.service.sys.MenuManager;

/**
 * @author zhoutao
 * 
 */
public class MenuTag extends BaseTag {

	private static final long serialVersionUID = 1L;
	private MenuManager menuManager;
	private Long parentId=-1L;

	@Override
	public int doStartTag() throws JspException {
		menuManager = (MenuManager) getManagerBean("menuManager");
		saveValues2PageContext( menuManager.loadChildMenus(parentId));
		return SKIP_BODY;
	}

	@Override
	public int doEndTag() throws JspException {
		return super.doEndTag();
	}
	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
}
